package com.huqing.icu.service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description 房源工具
 * @Author huqing
 * @Date 2025/6/1 19:05
 **/
@Component
public class HouseTools {

    @Tool(description = "根据userId查询，案例")
    public List<String> query(@ToolParam(description = "userId", required = false) Long userId) {

        List<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");
        list.add("3");
        return list;
    }
}
